<template>
 <div>
  <pre>
    {{content}}
  </pre>
 </div>
</template>
<script>
export default {
  name: 'Test',
  data(){
    return {
      content:""
    };

  },
  mounted(){//界面启动运行，估计是vue的生命周期
  this.axios.post("http://api.komavideo.com/news/list").then(body=>{
    this.content=body.data;
  });

  }

}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style >
</style>
